package com.ruoyi.wxcommon.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Tolerate;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 地区
 * </p>
 *
 * @author 凡哥哥
 * @since 2024-05-06
 */
@Data
@ToString
@TableName(value = "area")
@AllArgsConstructor
@Builder
public class Area implements Serializable {

    private static final long serialVersionUID = 1L;
    @Tolerate
    public Area(){

    }

      @TableId(value = "pk_id", type = IdType.AUTO)
      private Integer pkId;

    private Date createTime;
    /** 1城市 2校园 */
    @Excel(name = "1城市 2校园")
    private Integer atype;

    /** 学校名 */
    @Excel(name = "学校名")
    private String name;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private Integer isDelete;

    /** 优先级 */
    @Excel(name = "优先级")
    private Long sort;
    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("pkId", getPkId())
                .append("atype", getAtype())
                .append("name", getName())
                .append("createTime", getCreateTime())
                .append("isDelete", getIsDelete())
                .append("sort", getSort())
                .toString();
    }

}
